package com.qf.common.domain.admin.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author : sin
 * @date : 2024/6/13 23:12
 * @Description : 登录成功封装返回对象
 */
@TableName(value ="登录响应对象")
@Data
@AllArgsConstructor
public class LoginResultVO {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "角色列表")
    private List<String> roles;

    @ApiModelProperty(value = "当前用户信息")
    private UserInfoVO userInfo;

    @ApiModelProperty(value = "访问token")
    private String accessToken;

    @ApiModelProperty(value = "刷新token")
    private String refreshToken;

    @ApiModelProperty(value = "过期时间(单位：毫秒)")
    private Long expires;
}
